export default {
    tableCNName: "菜单",
    tableName: "menu",
    showIndex: true,
    showSelection: true,
    btns: ["Add", "Refresh", "Edit", "Delete"],
    tableInfo: [
        {
            column: "menuName",
            label: "菜单名称",
            type: "boolean",
        },
        {
            column: "oauth",
            label: "授权按钮",
            type: "string",
        },
        {
            label: "是否缓存页面",
            column: "noCache",
            type: "string",
        },
        {
            column: "url",
            label: "地址",
            type: "string",
        },
        {
            label: "图标",
            column: "icon",
            type: "string",
        },
        {
            label: "排序号",
            column: "orderNo",
            type: "int",
        },
        {
            label: "状态",
            column: "status",
            type: "int",
        },
        {
            label: "描述",
            column: "description",
            type: "string",
        },
    ],
    tableColumns: [
        "menuName",
        "oauth",
        "noCache",
        "url",
        "icon",
        "status",
        "description",
    ],
    queryColumns: ["menuName"],
    editColumns: [
        "menuName",
        "oauth",
        "noCache",
        "url",
        "icon",
        "status",
        "description",
    ],
};

export const btnMap = {
    Add: {
        type: "primary",
        btnName: "新建",
        funcName: "Add",
    },
    Edit: {
        type: "primary",
        btnName: "编辑",
        funcName: "Edit",
    },
    Refresh: {
        type: "success",
        btnName: "刷新",
        funcName: "Refresh",
    },
    Delete: {
        type: "danger",
        btnName: "删除",
        funcName: "Delete",
    },
};
